<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="shortcut icon" href="<?php echo $this->baseUrl('public/images/favicon.ico')?>" />

<title>修改数据</title>

</head>

<body>

<form method="post"action="<?php echo $this->baseUrl ?>/test/edit/">   
<table>

	  <tr>
	    <th class="title" colspan="2">修改数据</th>
	  </tr>
	
	<?php foreach($this->messages as $message): ?>   
      
	  <tr>
	    <th style="width:25%;">标题</th>
		<td><input type="text" name="title" id="title" value="<?php echo $message['title']; ?>" size="20"/> <span class="error">*</span></td>
	  </tr>
	  <input type="hidden" name="id"  value="<?php echo $message['id']; ?>" size="20"/>
	  <tr>
	    <th>内容</th>
		<td><textarea name="content" id="content" col="40" row="4"><?php echo $message['content']; ?></textarea><span class="error">*</span></td>
	  </tr>
	  
	  <tr>
	    <th colspan="2"><input type="submit" value="修改数据" class="cmd" /></th>
	  </tr>

	  <?php endforeach; ?>
	</table>
</form>

</body>

</html>